<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
define('NOSESSION',true);
require_once '../../core/core.php';
define('NO_ERROR_RETURN',true);
define('JSAPI',true);
set_exi(function($message,$type,$action,$url){
	ob_clean();
	exit('');
});
if($_AR['close']){
	exi('站点已关闭','error');
}
if(!empty($_RQ['appid'])){
	//开放平台代收消息处理
}elseif(!empty($_RQ['wxappid'])){
	//普通微信小程序绑定消息接收处理
}else{
	if(empty($message)){
		exit('error7');
	}
}
if(!$_AR['wx']){
	exi('error9','error');
}
exit('success');